Human = class(EntityLiving)

Human.width = 0.4
Human.height = 1.75
Human.eyeHeight = 1.62

function Human:init()
    EntityLiving.init(self)
    self:setSize(Human.width,Human.height)
    self.heightOffset = Human.eyeHeight
    self:resetPos()
    self.model = HumanModel()
    self:setAI(EntityAIHuman(self))
end

function Human:render(a)
    pushMatrix()
    local x = self.xo + (self.x - self.xo) * a
    local y = self.yo + (self.y - self.yo) * a
    local z = self.zo + (self.z - self.zo) * a
    
    self.AI:AIProcessBody(self.model)
    
    translate(x,y - 0.4,z)
    scale(1,-1,1)
    scale(0.05)
    rotate(self.yRot * 57.29578,0,1,0)
    self.model:render()
    popMatrix()
end
